<div class="navbar header">
            <ul class="nav-left col-xs-5">
                <li class="col-xs-1">
                    <a href="javascript:void(0);" class="sidebar-toggle" id="sidebar-toggle">
                        <i class="fa fa-list"></i>
                    </a>
                </li>
                <li class="col-xs-1 col-xs-offset-1">
                    <a href="javascript:void(0);" class="search-box">
                        <i class="fa fa-search"></i>
                    </a>
                </li>
                <li class="col-xs-8 col-xs-offset-1 hide">
                    <div class="input-group">
                        <input type="text" class="form-control search-item" name="search-item" placeholder="请输入名称" />
                        <div class="input-group-addon" role="button">搜索</div>
                    </div>
                </li>
            </ul>
            <ul class="nav-right col-xs-5 col-xs-offset-2">
                {% if request.user.is_authenticated() %}
                    <div class="col-xs-6 col-xs-offset-2">
                        欢迎你,<span><b>{{ request.user }}</b></span>
                    </div>
                    <a href="{{  url('app01:logout') }}" class="col-xs-4">[退出]</a>
                {% else %}
                    <div class="col-xs-offset-6 col-xs-6">
                        <div class="col-xs--6">
                            <a href="{{  url('app01:login') }}">登录</a>
                            <a href="{{ url('app01:register') }}">注册</a>
                        </div>
                    </div>
                {% endif %}
            </ul>
        </div>